package com.cloud.entity.mes;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 成品检验单表(MesQmProductExam)实体类
 *
 * @author makejava
 * @since 2022-04-29 14:13:16
 */
@Data
@Table(name = "mes_qm_productexam")
public class MesQmProductExam implements Serializable {
    private static final long serialVersionUID = 448202944362537378L;
    /**
     * id
     */
    @Column(name = "id")
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 工厂id
     */
    @Column(name = "factory_id")
    @ApiModelProperty(value = "工厂id")
    private String factoryId;
    /**
     * 工单id
     */
    @Column(name = "task_id")
    @ApiModelProperty(value = "工单id")
    private String taskId;
    /**
     * 工单号
     */
    @ApiModelProperty(value = "工单号")
    private String taskCode;
    /**
     * 检验单号
     */
    @Column(name = "code")
    @ApiModelProperty(value = "检验单号")
    private String code;
    /**
     * 批次号
     */
    @Column(name = "batch_num")
    @ApiModelProperty(value = "批次号")
    private String batchNum;
    /**
     * 报检数量
     */
    @Column(name = "amount")
    @ApiModelProperty(value = "报检数量")
    private Integer amount;
    /**
     * 物料id
     */
    @Column(name = "product_id")
    @ApiModelProperty(value = "物料id")
    private String productId;
    /**
     * 物料编码
     */
    @Column(name = "product_code")
    @ApiModelProperty(value = "物料编码")
    private String productCode;
    /**
     * 物料名称
     */
    @Column(name = "product_name")
    @ApiModelProperty(value = "物料名称")
    private String productName;
    /**
     * 供方检验结论0合格 1不合格
     */
    @Column(name = "stest_result")
    @ApiModelProperty(value = "供方检验结论0合格 1不合格")
    private String stestResult;
    /**
     * 供方不合格处置结论
     */
    @Column(name = "sng_result")
    @ApiModelProperty(value = "供方不合格处置结论")
    private String sngResult;
    /**
     * 驻代检验结论0合格 1不合格
     */
    @Column(name = "jtest_result")
    @ApiModelProperty(value = "驻代检验结论0合格 1不合格")
    private String jtestResult;
    /**
     * 驻代不合格处置结论
     */
    @Column(name = "jng_result")
    @ApiModelProperty(value = "驻代不合格处置结论")
    private String jngResult;
    /**
     * 样本数量
     */
    @Column(name = "sample_amount")
    @ApiModelProperty(value = "样本数量")
    private Integer sampleAmount;
    /**
     * 供方检验日期
     */
    @Column(name = "stest_date")
    @ApiModelProperty(value = "供方检验日期")
    private Date stestDate;
    /**
     * 供方检验人名称
     */
    @Column(name = "stest_user_name")
    @ApiModelProperty(value = "供方检验人名称")
    private String stestUserName;
    /**
     * 创建时间
     */
    @Column(name = "cd_time")
    @ApiModelProperty(value = "创建时间")
    private Date cdTime;
    /**
     * 创建人id
     */
    @Column(name = "cd_userid")
    @ApiModelProperty(value = "创建人id")
    private String cdUserid;
    /**
     * 修改时间
     */
    @Column(name = "md_time")
    @ApiModelProperty(value = "修改时间")
    private Date mdTime;
    /**
     * 修改人id
     */
    @Column(name = "md_userid")
    @ApiModelProperty(value = "修改人id")
    private String mdUserid;
    /**
     * 删除标识0否1是
     */
    @Column(name = "deleted")
    @ApiModelProperty(value = "删除标识0否1是")
    private Integer deleted;
    /**
     * 是否移交0否1是
     */
    @Column(name = "is_transfer")
    @ApiModelProperty(value = "是否移交0否1是")
    private Integer isTransfer;
    /**
     * 是否打印
     */
    @Column(name = "is_print")
    @ApiModelProperty(value = "是否打印")
    private String isPrint;
    /**
     * 报检批次数
     */
    @Column(name = "batch_number")
    @ApiModelProperty(value = "报检批次数")
    private Integer batchNumber;
    /**
     * 创建人名称
     */
    @Column(name = "cdusername")
    @ApiModelProperty(value = "创建人名称")
    private String cdusername;
    /**
     * 修改人名称
     */
    @Column(name = "mdusername")
    @ApiModelProperty(value = "修改人名称")
    private String mdusername;
    /**
     * 驻代检测时间
     */
    @Column(name = "jtest_date")
    @ApiModelProperty(value = "驻代检测时间")
    private Date jtestDate;
    /**
     * 驻代检测人姓名
     */
    @Column(name = "jtest_user_name")
    @ApiModelProperty(value = "驻代检测人姓名")
    private String jtestUserName;
    /**
     * 是否同步pts
     */
    @Column(name = "is_topts")
    @ApiModelProperty(value = "是否同步pts")
    private String isTopts;
    /**
     * 验货样本数
     */
    @Column(name = "jsample_amount")
    @ApiModelProperty(value = "验货样本数")
    private Integer jsampleAmount;
    /**
     * 是否同步pts配件批次码
     */
    @Column(name = "is_topts_barcode")
    @ApiModelProperty(value = "是否同步pts配件批次码")
    private Integer isToptsBarcode;
    /**
     * 文件id
     */
    @Column(name = "file_id")
    @ApiModelProperty(value = "文件id")
    private String fileId;
    /**
     * 不良总数
     */
    private Integer badAmount;
}
